/**
 * Copyright (C) 2010 Comba Telecom Systems Holdings Ltd. All rights reserved
 *
 * 本代码版权归京信通信系统控股有限公司所有，且受到相关的法律保护。
 * 没有经过版权所有者的书面同意，
 * 任何其他个人或组织均不得以任何形式将本文件或本文件的部分代码用于其他商业用途。
 *
 */
package com.javaframe.role.tools;

/**
 * 【业务逻辑处理相关静态变量定义类】 命名规则(数据库字段定义):表名+类型
 * 
 * @version
 * @author beijunxian 2010-6-28 下午02:54:40
 * 
 */
public class GenericConstants {
	// 公共部分
	public static final String COMMA_SEPARATOR = ",";// 逗号分隔符号(可用于查询条件信息分隔)
	public final static int NEW_LINE = 0x000a; // 换行符

	// 用于换肤
	//public static final String STYLE_TYPE_PARAMKEY = "OMC5toSelfStyleType";

	// 公共下拉查询部分
	public static final String FLAG_BEGIN = "strBe";// 和JSP结合使用
	public static final String FLAG_END = "strEn";// 和JSP结合使用
	public static final String FLAG_PARAM = ";";// 和JSP结合使用
	public static final String FLAG_PARAM_VALUE = "=";// 和JSP结合使用

	// 配置部分
	public static final int CELL_SYNC_TYPE = 1;// 单个元素同步
	public static final int ROW_SYNC_TYPE = 2;// 行元素同步
	public static final int TABLE_SYNC_TYPE = 3; // 表格元素同步

	public static final int NULL_ROW_ID = 0;// 普通元素的空行id;表类型第一行也从0开始计数
	public static final int NULL_COLUMN_ID = 0;// 普通元素的空列id

	public static final int PARAM_VALUE_TYPE_NUMBER = 1;// 对象值类型
	public static final int PARAM_VALUE_TYPE_ENUM = 2;// 对象值类型
	public static final int PARAM_VALUE_TYPE_STRING = 3;// 对象值类型
	public static final int PARAM_VALUE_TYPE_OBJECT = 4;// 对象值类型

	public static final int MOD_PARAM_VALUE = 1;// 1=修改参数值,新增表类型数据的行记录
	public static final int DEL_COLUMN_VALUE = 2;// 2=删除表类型数据的行记录

	public static final int PARAM_TYPE_USE_FLAG_GW = 1;// 网关参数树形分类
	public static final int PARAM_TYPE_USE_FLAG_FEMTO = 2;// Femto参数树形分类

	public static final int PARAM_TYPE_ID_ALL = 0;// 根节点下全部参数树形分类
	public static final int PARAM_TYPE_ID_DEVICE_INFO = 1;// DeviceInfo参数树形分类
	public static final int PARAM_TYPE_ID_MANAGEMENT_SERVER = 2;// ManagementServer参数树形分类
	public static final int PARAM_TYPE_ID_TIME = 3;// Time参数树形分类
	public static final int PARAM_TYPE_ID_LAN = 4;// LAN参数树形分类
	public static final int PARAM_TYPE_ID_FAP = 11;// FAP参数树形分类

	public static final String GW_CONFIG_OPER_FIELD_SEPARATOR = "$$";// GW配置操作字段分隔符号
	public static final String GW_CONFIG_OPER_FIELD_SEPARATOR2 = "\\$\\$";// 用于split

	public static final int NE_MODEL_GW_DB = 1;// 1 表示GW_DB
	public static final int NE_MODEL_PROP_CWMP = 2;// 10002 表示CWMP

	public static final int FEMTO_PROTOCOL = 10002;
	
	// add by wuweijie 2011-02-10 网关参数类型对应网关数据库中paramTypeId+100000
	public static final int GW_PARAM_TYPE_CONVERT = 100000;

	//public static final String QUERY_NE_NAME = "neName";
	public static final int SET_PARAMETER_VALUES_VO_ID = -1;//参数模板信息ID

	// 告警部分
	public static final int NE_ALARM_SOURCE_TYPE = 1;// 网元实体类型告警
/*	public static final String QUERY_ALARM_STAMP = "stamp";
	public static final String QUERY_ALARM_HISTORY_CLEAR_STAMP = "clearStamp";
	public static final String QUERY_ALARM_ALARMMIBNAME = "alarmMib.name";
	public static final String QUERY_ALARM_ALARMMIB_ALARMTYPE_ID = "alarmMib.alarmType.id";
	public static final String QUERY_ALARM_ALARMMIB_ALARMSEVERITY_ID = "alarmMib.severity.id";
	public static final String QUERY_ALARM_ALARMMIB_SEVERITYNAME = "alarmMib.severity.name";
	public static final String QUERY_ALARM_ALARMMIB_ALARMTYPE_NAME = "alarmMib.alarmType.name";

	// 日志部分
	public static final String QUERY_USERLOGGER_LOGMIB_LOGLEBEL_NAME = "logMib.logLevel.levelName";
	public static final String QUERY_USERLOGGER_USERNAME = "userName";
	public static final String QUERY_USERLOGGER_LOGMIT_LOGTYPE_NAME = "logMib.logType.logTypeName";
	public static final String QUERY_USERLOGGER_LOGMIB_LOGLEVEL_ID = "logMib.logLevel.levelId";
	public static final String QUERY_USERLOGGER_LOGMIT_LOGTYPE_ID = "logMib.logType.logTypeId";
	public static final String QUERY_USERLOGGER_TIME = "time";*/

	// 性能部分

	// 消息通知
	public final static int CF_MODULE_START = 1100;
	public final static int CF_MODULE_OPERATE_PARAM = 1100;
	public final static int CF_MODULE_ROLLBACK_PARAM = 1101;
	public final static int CF_MODULE_TYPE = 1102;

	public final static int CF_MODULE_END = 1199;

	public final static int AR_MODULE_START = 1300;
	public final static int AR_MODULE_ADD = 1300;
	public final static int AR_MODULE_BACK = 1301;
	public final static int AR_MODULE_PARAM = 1302;
	public final static int AR_MODULE_END = 1399;

	public final static int PM_MODULE_START = 1200;
	public final static int PM_MODULE_ADD_JOB = 1200;
	public final static int PM_MODULE_MODIFY_JOB = 1201;
	public final static int PM_MODULE_DEL_JOB = 1202;
	public final static int PM_MODULE_ADD_SCHEDULE = 1203;
	public final static int PM_MODULE_MODIFY_SCHEDULE = 1204;
	public final static int PM_MODULE_DEL_SCHEDULE = 1205;
	public final static int PM_MODULE_TYPE = 1206;
	public final static int PM_MODULE_END = 1299;

	public final static int LG_MODULE_START = 1400;
	public final static int LG_MODULE_ADD = 1400;
	public final static int LG_MODULE_PARAM = 1401;
	public final static int LG_MODULE_END = 1499;

	// *************************************************************************
	// hql 常量
	// 配置部分
	public final static String UPARAMCOPY_PARENT_EQUIPMENT_PARAM_FLAG = "parentEquipmentParamFlag";
	public final static String UPARAMCOPY_ROW_ID = "rowId";

	public final static String NEPARAM_PARENT_EQUIPMENT_PARAM_FLAG = "parentEquipmentParamFlag";
	public final static String NEPARAM_EQUIPMENT_PARAM_FLAG = "equipemntParamFlag";

	public static final int NE_TYPE_FLAG_GW = 1;// 网元网关分类
	public static final int NE_TYPE_FLAG_FEMTO = 2;// 网元Femto分类

	public static final int DELET_FLAG = 1;
	public static final int SHOW_FLAG = 0;
	public static final int NORMAL = 0;
	public static final int ODD = 1;
	public static final String PROMPT_INFO = "配置的名称重复";
	public static final String OPERATE_FAIL = "操作失败";

	// 消息通知部分
	public final static String INFORMATION_NOTIFY_MODULEID = "moduleId";
	public final static String INFORMATION_NOTIFY_ID = "id";
	public final static String INFORMATION_NOTIFY_OPERATEFLAG = "operateFlag";
	public final static String INFORMATION_NOTIFY_CREATETIME = "createTime";

	// 公共过滤器
	public static final String CONTAIN = "0";
	public static final String NOT_CONTAIN = "1";
	public static final String EQUAL = "2";
	public static final String NOT_EQUAL = "3";
	public static final String CONDITION = "condition";
	public static final String CONTENT = "content";
	public static final String FORMULA = "formula";

	// femto无线环境性能报表
	public static final String RADIO_ENV = "PM_ITEM_RADIOENV";
	public static final String RADIO_ENV_COL1 = "DISTURB_POWER_120_110";
	public static final String RADIO_ENV_COL2 = "DISTURB_POWER_110_100";
	public static final String RADIO_ENV_COL3 = "DISTURB_POWER_100_90";
	public static final String RADIO_ENV_COL4 = "DISTURB_POWER_90_80";
	public static final String RADIO_ENV_COL5 = "DISTURB_POWER_80_70";
	public static final String RADIO_ENV_COL6 = "DISTURB_POWER_70";
	public static final String RADIO_ENV_COL7 = "CELL_RESET_SUCCESS_RATE";
	public static final String RADIO_ENV_COL8 = "CELL_RESET_FAIL_RATE";
	public static final String RADIO_ENV_COL9 = "SYNC_SUCCESS_RATE";
	
	// femto信令连接报表
	public static final String PM_ITEM_SIGN_JOIN = "PM_ITEM_SIGN_JOIN";
	public static final String PM_ITEM_SIGN_JOIN_COL1 = "SIGN_SUCCESS";
	public static final String PM_ITEM_SIGN_JOIN_COL2 = "RADIO_LINK_SUCCESS";

	// femtoIUB及UU接口报表
	public static final String PM_ITEM_IUB_UU = "PM_ITEM_IUB_UU";
	public static final String PM_ITEM_IUB_UU_COL1 = "RRC_RELEASE";
	public static final String PM_ITEM_IUB_UU_COL2 = "IUB_RELEASE";

	// femto寻呼过程报表
	public static final String PM_ITEM_PAGE_PROCEDURE = "PM_ITEM_PAGE_PROCEDURE";
	public static final String PM_ITEM_PAGE_PROCEDURE_COL1 = "RESPONSE_RATE";

	// femtoIUH接口报表
	public static final String PM_ITEM_IUH_PROCEDURE = "PM_ITEM_IUH_PROCEDURE";
	public static final String PM_ITEM_IUH_PROCEDURE_COL1 = "HNBAP_RELEASE";
	public static final String PM_ITEM_IUH_PROCEDURE_COL2 = "RUA_CONNECT";
	public static final String PM_ITEM_IUH_PROCEDURE_COL3 = "RUA_DISCONNECT";
	public static final String PM_ITEM_IUH_PROCEDURE_COL4 = "RANAP_SECMODE";

	// femtoRAB连接报表
	public static final String PM_ITEM_RAB_PROCEDURE = "PM_ITEM_RAB_PROCEDURE";
	public static final String PM_ITEM_RAB_PROCEDURE_COL1 = "RANAPRAB_SUCCESS";
	public static final String PM_ITEM_RAB_PROCEDURE_COL2 = "VOICECALL_SUCCESS";
	public static final String PM_ITEM_RAB_PROCEDURE_COL3 = "VEDIOCALL_SUCCESS";
	public static final String PM_ITEM_RAB_PROCEDURE_COL4 = "HSDPA_SUCCESS";
	public static final String PM_ITEM_RAB_PROCEDURE_COL5 = "DCH_SUCCESS";

	// femto切换过程报表
	public static final String PM_ITEM_RELOCATION = "PM_ITEM_RELOCATION";
	public static final String PM_ITEM_RELOCATION_COL1 = "RANAPSRNS_SUCCESS";//SRNS RANAP重定向成功率
	public static final String PM_ITEM_RELOCATION_COL2 = "RANAPSRNS_PREPRECV";//SRNS RANAP层重定向失败率
	public static final String PM_ITEM_RELOCATION_COL3 = "RANAPSRNS_CMDTIMEOUT";//SRNS RANAP重定向超时比率
	
	
	//femto语音电话类型统计
	public static final String PM_ITEM_VOICECALL = "PM_ITEM_VOICECALL";//表名
	public static final String PM_ITEM_VOICECALL_COL1 = "VOICE_RAB_SUCCESS";//语音电话RAB成功率
	public static final String PM_ITEM_VOICECALL_COL2 = "VOICE_NO_OVSF_CODE";//语音电话没有码资源导致失败率
	public static final String PM_ITEM_VOICECALL_COL3 = "VOICE_IUUPRTP_FAILED";//语音电话配置IUUP和RTP失败导致失败率
	public static final String PM_ITEM_VOICECALL_COL4 = "VOICE_RLCMAC_FAILED";//语音电话配置RLCMAC失败导致失败率
	public static final String PM_ITEM_VOICECALL_COL5 = "VOICE_RAB_RBFAILED";//语音电话RAB层Rb建立失败导致失败率
	public static final String PM_ITEM_VOICECALL_COL6 = "VOICE_RAB_RBTIMEOUT";//语音电话RAB层Rb建立超时导致失败率
	
	//femto视频电话类型统计
	public static final String PM_ITEM_VIDEOCALL = "PM_ITEM_VIDEOCALL";//表名
	public static final String PM_ITEM_VIDEOCALL_COL1 = "VIDEO_RAB_SUCCESS";//视频电话RAB成功率
	public static final String PM_ITEM_VIDEOCALL_COL2 = "VIDEO_NO_OVSF_CODE";//视频电话没有码资源导致失败率
	public static final String PM_ITEM_VIDEOCALL_COL3 = "VIDEO_IUUPRTP_FAILED";//视频电话配置IUUP和RTP失败导致失败率
	public static final String PM_ITEM_VIDEOCALL_COL4 = "VIDEO_RLCMAC_FAILED";//视频电话配置RLCMAC失败导致失败率
	public static final String PM_ITEM_VIDEOCALL_COL5 = "VIDEO_RAB_RBFAILED";//视频电话RAB层Rb建立失败导致失败率
	public static final String PM_ITEM_VIDEOCALL_COL6 = "VIDEO_RAB_RBTIMEOUT";//视频电话RAB层Rb建立超时导致失败率
	
	//femtoHSDPA业务类型统计
	public static final String PM_ITEM_HSDPA = "PM_ITEM_HSDPA";//表名
	public static final String PM_ITEM_HSDPA_COL1 = "HSDPA_RAB_SUCCESS";//HSDPA业务RAB成功率
	public static final String PM_ITEM_HSDPA_COL2 = "HSDPA_NO_OVSF_CODE";//HSDPA业务没有码资源导致失败率
	public static final String PM_ITEM_HSDPA_COL3 = "HSDPA_GTPU_FAILED";//HSDPA业务配置GTPU失败导致失败次数
	public static final String PM_ITEM_HSDPA_COL4 = "HSDPA_RLCMAC_FAILED";//HSDPA业务配置RLCMAC失败导致失败率
	public static final String PM_ITEM_HSDPA_COL5 = "HSDPA_RAB_RBFAILED";//HSDPA业务RAB层Rb建立失败导致失败率
	public static final String PM_ITEM_HSDPA_COL6 = "HSDPA_RAB_RBTIMEOUT";//HSDPA业务RAB层Rb建立超时导致失败率
	
	//femtoPS业务类型统计
	public static final String PM_ITEM_PSBUSI = "PM_ITEM_PSBUSI";//表名
	public static final String PM_ITEM_PSBUSI_COL1 = "PS_RAB_SUCCESS";//DCH业务RAB成功率
	public static final String PM_ITEM_PSBUSI_COL2 = "PSDCH_NO_OVSF_CODE";//PS_DCH业务没有码资源导致失败率
	public static final String PM_ITEM_PSBUSI_COL3 = "PSDCH_IUUPRTP_FAILED";//PS_DCH业务配置IUUP和RTP失败导致失败率
	public static final String PM_ITEM_PSBUSI_COL4 = "PSDCH_RLCMAC_FAILED";//PS_DCH业务配置RLCMAC失败导致失败率
	public static final String PM_ITEM_PSBUSI_COL5 = "PSDCH_RAB_RBFAILED";//PS_DCH业务RAB层Rb建立失败导致失败率
	public static final String PM_ITEM_PSBUSI_COL6 = "PSDCH_RAB_RBTIMEOUT";//PS_DCH业务RAB层Rb建立超时导致失败率
	
	//femto 话务量与数据量统计
	public static final String PM_ITEM_PSIUTRAFFIC = "PM_ITEM_PSIUTRAFFIC";
	public static final String PM_ITEM_PSIUTRAFFIC_COL1 = "PSIUUSR_TRAFFIC";//TD系统分组域业务流量（RNC）
	
	//femto Handover过程统计
	public static final String PM_ITEM_HANDOVER = "PM_ITEM_HANDOVER";
	public static final String PM_ITEM_HANDOVER_COL1 = "VOICE_HANDOVER_SUCC";//语音电话HNB向UMTS切换成功率
	public static final String PM_ITEM_HANDOVER_COL2 = "VIDEO_HANDOVER_SUCC";//视频电话HNB向UMTS切换成功率
	public static final String PM_ITEM_HANDOVER_COL3 = "HSDPA_HANDOVER_SUCC";//HSDPA业务HNB向UMTS切换尝试次数
	public static final String PM_ITEM_HANDOVER_COL4 = "PS_HANDOVER_SUCC";//PS_DCH业务HNB向UMTS切换尝试次数
	
	//femto有线网络检测、
	public static final String PM_ITEM_RTPPKT = "PM_ITEM_RTPPKT";
	public static final String PM_ITEM_RTPPKT_COL1 = "RTP_PKT_RECV";//RTP丢包率
	
	//RAB相关过程
	public static final String PM_ITEM_RANAPRAB = "PM_ITEM_RANAPRAB";
	public static final String PM_ITEM_RANAPRAB_COL1 = "RANAP_RABASS_SUCC";//RANAP层RAB建立成功率
	
	//SCTP统计（链路保障）
	public static final String PM_ITEM_SCTP = "PM_ITEM_SCTP";
	public static final String PM_ITEM_SCTP_COL1 = "SCTP_ASSOC_SUCC";
	public static final String PM_ITEM_SCTP_COL2 = "SCTPASSOC_ERROR_STREAM";
	public static final String PM_ITEM_SCTP_COL3 = "SCTPASSOC_ERROR_PARAM";
	public static final String PM_ITEM_SCTP_COL4 = "SCTPASSOC_ERROR_STALE";
	public static final String PM_ITEM_SCTP_COL5 = "SCTPASSOC_ERROR_RES";
	public static final String PM_ITEM_SCTP_COL6 = "SCTPASSOC_ERROR_UNRSLVADDR";
	public static final String PM_ITEM_SCTP_COL7 = "SCTPASSOC_ERROR_UNRECOGCHUNK";
	public static final String PM_ITEM_SCTP_COL8 = "SCTPASSOC_ERROR_INVALMANDPAR";
	public static final String PM_ITEM_SCTP_COL9 = "SCTPASSOC_ERROR_NOUSRDATA";
	public static final String PM_ITEM_SCTP_COL10 = "SCTPASSOC_ERROR_COOKIESHTDWN";
	public static final String PM_ITEM_SCTP_COL11 = "SCTPASSOC_ERROR_COOKIENEWADDR";
	public static final String PM_ITEM_SCTP_COL12 = "SCTPASSOC_ERROR_UNRECOGPAR";
	public static final String PM_ITEM_SCTP_COL13 = "SCTPASSOC_ERROR_INITIATEDABORT";
	public static final String PM_ITEM_SCTP_COL14 = "SCTPASSOC_ERROR_PV";
	public static final String PM_ITEM_SCTP_COL15 = "SCTPASSOC_ERROR_DEFAULT";
	
	//RRC指标统计过程
	public static final String PM_ITEM_RRCSTAS = "PM_ITEM_RRCSTAS";
	public static final String PM_ITEM_RRCSTAS_COL1 = "RRC_CONVCALL";//主叫Conversation Call比率
	public static final String PM_ITEM_RRCSTAS_COL2 = "RRC_STREAMCALL";//主叫Streaming Call次数
	public static final String PM_ITEM_RRCSTAS_COL3 = "RRC_INTERCALL";//主叫Interactive Call次数
	public static final String PM_ITEM_RRCSTAS_COL4 = "RRC_BACKCALL";//主叫Background Call次数
	public static final String PM_ITEM_RRCSTAS_COL5 = "RRC_SUBSTRACALL";//主叫Subscribed Traffic Call次数
	public static final String PM_ITEM_RRCSTAS_COL6 = "RRC_CONVALCALL";//被叫Conversational Call次数
	public static final String PM_ITEM_RRCSTAS_COL7 = "RRC_STREAMEDCALL";//被叫Streaming Call次数
	public static final String PM_ITEM_RRCSTAS_COL8 = "RRC_INTEREDCALL";//被叫Interactive Call次数
	public static final String PM_ITEM_RRCSTAS_COL9 = "RRC_BACKEDCALL";//被叫Background Call次数
	public static final String PM_ITEM_RRCSTAS_COL10 = "RRC_EMERGCALL";//Emergency Call次数
	public static final String PM_ITEM_RRCSTAS_COL11 = "RRC_INTERCELLRESE";//InterRAT_CellReselection次数
	public static final String PM_ITEM_RRCSTAS_COL12 = "RRC_INTERCELLCHANG";//InterRAT_CellChangeOrder次数
	public static final String PM_ITEM_RRCSTAS_COL13 = "RRC_REG";//Registration次数
	public static final String PM_ITEM_RRCSTAS_COL14 = "RRC_DETACH";//Detach次数
	public static final String PM_ITEM_RRCSTAS_COL15 = "RRC_HIGHPRIOSIGN";//主叫HighPrioritySignalling次数
	public static final String PM_ITEM_RRCSTAS_COL16 = "RRC_LOWPRIOSIGN";//主叫LowPrioritySignalling
	public static final String PM_ITEM_RRCSTAS_COL17 = "RRC_CALLREEST";//Call Re_establishment次数
	public static final String PM_ITEM_RRCSTAS_COL18 = "RRC_HIGHPRIOEDSIGN";//被叫HighPrioritySignalling次数
	public static final String PM_ITEM_RRCSTAS_COL19 = "RRC_LOWPRIOEDSIGN";//被叫LowPrioritySignalling次数
	public static final String PM_ITEM_RRCSTAS_COL20 = "RRC_CAUSEUNKNOW";//被叫CauseUnknown次数
	
	//UE注册过程
	public static final String PM_ITEM_HNBAPUEREG = "PM_ITEM_HNBAPUEREG";
	public static final String PM_ITEM_HNBAPUEREG_COL1 = "HNBAP_UEREGACPT";//HNBAP协议层UE注册成功率
	public static final String PM_ITEM_HNBAPUEREG_COL2 = "HNBAP_UEREREJ";//HNBAP协议层UE注册失败率
	public static final String PM_ITEM_HNBAPUEREG_COL3 = "HNBAP_UERETIMEOUT";//HNBAP协议层UE注册超时比率
	
	//误块统计
	public static final String PM_ITEM_PSREVBLOCKERR = "PM_ITEM_PSREVBLOCKERR";
	public static final String PM_ITEM_PSREVBLOCKERR_COL1 = "PSREV_UPTRANSBLOCKERR";//PS域误块率
	public static final String PM_ITEM_PSREVBLOCKERR_COL2 = "CSREV_UPTRANSBLOCKERR";//CS域误块率
	
	//寻呼过程统计
	public static final String PM_ITEM_PAGINGRESP = "PM_ITEM_PAGINGRESP";
	public static final String PM_ITEM_PAGINGRESP_COL1 = "FAP_PAGINGTYPESENDSUCC";//寻呼成功率
	
	//PDP过程统计
	public static final String PM_ITEM_PDP = "PM_ITEM_PDP";
	public static final String PM_ITEM_PDP_COL1 = "PDP_SUCC";//PDP成功率
}




















